/*入口文件*/

//引入vue
import Vue from 'vue';
//引入App组件，该组件是其他组件的父组件
import App from './App.vue';
//引入路由配置，使用路由
import router from '@/route/index';
//引入仓库配置
import store from '@/store/index'
import dayjs from 'dayjs';
import {Pagination,Table, TableColumn,Button,Input,Autocomplete,Form,FormItem,Dialog,Notification,
        MessageBox,Message,DatePicker,Select,Option,Popover,Tag,Descriptions,DescriptionsItem,
        Link,Row,Col,Icon,Checkbox,Statistic,Menu,MenuItem,MenuItemGroup,Submenu,Drawer} from 'element-ui'


//关闭生产提示
Vue.config.productionTip = false

Vue.component(Pagination.name,Pagination);Vue.component(Table.name,Table);Vue.component(TableColumn.name,TableColumn);Vue.component(Button.name,Button);
Vue.component(Input.name,Input);Vue.component(Autocomplete.name,Autocomplete);Vue.component(Form.name,Form);Vue.component(FormItem.name,FormItem);
Vue.component(Dialog.name,Dialog);Vue.component(DatePicker.name,DatePicker);Vue.component(Select.name,Select);Vue.component(Option.name,Option);
Vue.component(Popover.name,Popover);Vue.component(Tag.name,Tag);Vue.component(Descriptions.name,Descriptions);
Vue.component(DescriptionsItem.name,DescriptionsItem);Vue.component(Link.name,Link);Vue.component(Row.name,Row);Vue.component(Col.name,Col);
Vue.component(Icon.name,Icon);Vue.component(Checkbox.name,Checkbox);Vue.component(Statistic.name,Statistic);Vue.component(Menu.name,Menu);
Vue.component(MenuItem.name,MenuItem);Vue.component(MenuItemGroup.name,MenuItemGroup);Vue.component(Submenu.name,Submenu);Vue.component(Drawer.name,Drawer);

Vue.prototype.$notify=Notification;
Vue.prototype.$confirm=MessageBox.confirm;
Vue.prototype.$message=Message;
Vue.prototype.dayjs=dayjs
//生成vue实例对象
new Vue({
  render: h => h(App),
  router,
  store,
  //全局事件总线
  beforeCreate(){
    Vue.prototype.$bus=this
  }
}).$mount('#app')
//$mount(’#app’) ：手动挂载到id为app的dom中的意思
